# Copyright © 2017-2020 Canonical Ltd.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

add_library(platform STATIC
  platform_linux.cpp
  platform_shared.cpp
  platform_unix.cpp)

target_link_libraries(platform
  qemu_backend
  libvirt_backend
  lxd_backend
  journaldlogger)

include_directories(platform
  backends
  ${CMAKE_SOURCE_DIR}/src)

target_link_libraries(platform
  daemon
  shared
  update
  utils
  Qt5::Gui)

add_subdirectory(backends)
add_subdirectory(client)
add_subdirectory(console)
add_subdirectory(logger)
add_subdirectory(update)
